Fix setting modules build type for tsh and tctl#51986
Conversation
|
There is no such thing as enterprise builds for tsh, tctl, and Teleport Connect. We distribute single build that works for all types of clusters. It took over a year of thoughtful changes to make this happen. Please maintain this property. |
|
@zmb3 Vadym is trying to prevent AGPL builds of tsh/tctl from auto-updating to community or enterprise edition builds hosted on the CDN. I think we have a few options to solve this:
Do you have a preference for which approach is taken? I agree this shouldn't involve introducing additional builds of the binaries. |
|
1 or 3 sound okay to me. I would avoid option 2. |
…uested by the `webapi/find` response or set via an environment variable.
|
Verified on https://github.com/gravitational/teleport.e/actions/runs/13252616358 build, for community and enterprise packages |
|
Thanks @vapopov, looks good! |
* Fix setting modules for tsh and tctl * Restore IsOSSBuild() * Add different warning messages depending on whether the update is requested by the `webapi/find` response or set via an environment variable. * Check only the build type of client tools
* Fix setting modules for tsh and tctl * Restore IsOSSBuild() * Add different warning messages depending on whether the update is requested by the `webapi/find` response or set via an environment variable. * Check only the build type of client tools
* Fix setting modules for tsh and tctl * Restore IsOSSBuild() * Add different warning messages depending on whether the update is requested by the `webapi/find` response or set via an environment variable. * Check only the build type of client tools
* Default BaseURL only for community / enterprise editions (#51732) * Add requirement to set base URL for OSS builds Fix progress bar for darwin platform * Show warning only before update * Move error to teleportPackageURLs * Move error to teleportPackageURLs * Fix linter * Fix setting modules build type for tsh and tctl (#51986) * Fix setting modules for tsh and tctl * Restore IsOSSBuild() * Add different warning messages depending on whether the update is requested by the `webapi/find` response or set via an environment variable. * Check only the build type of client tools
* Add requirement to set base URL for OSS builds Fix progress bar for darwin platform * Show warning only before update * Move error to teleportPackageURLs * Move error to teleportPackageURLs * Fix linter * Fix setting modules build type for tsh and tctl (#51986) * Fix setting modules for tsh and tctl * Restore IsOSSBuild() * Add different warning messages depending on whether the update is requested by the `webapi/find` response or set via an environment variable. * Check only the build type of client tools
* Default BaseURL only for community / enterprise editions (#51732) * Add requirement to set base URL for OSS builds Fix progress bar for darwin platform * Show warning only before update * Move error to teleportPackageURLs * Move error to teleportPackageURLs * Fix linter * Fix setting modules build type for tsh and tctl (#51986) * Fix setting modules for tsh and tctl * Restore IsOSSBuild() * Add different warning messages depending on whether the update is requested by the `webapi/find` response or set via an environment variable. * Check only the build type of client tools
* Fix setting modules for tsh and tctl * Restore IsOSSBuild() * Add different warning messages depending on whether the update is requested by the `webapi/find` response or set via an environment variable. * Check only the build type of client tools
I've postponed merging backports of #51732 until verify
nightlybuild since I didn't findBuildTypemodification in scripts for the client toolstshandtctl. I've verified on the latest builds:For client tools,
modules.GetModules().BuildType()always returns "oss", causing a warning to always be displayed for community and enterprise builds and disabling updates until the base URL environment variable is set.Related:
Tag build: https://github.com/gravitational/teleport.e/actions/runs/13212233201